﻿using MovingChameLibrary.EnumTypes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MovingChame.WindowsStoreApp.Helpers
{
    public static class LabelContentHelper
    {
        private const string DescendingIcon = "▲";
        private const string AscendingIcon = "▼";

        public static string GetSortLabelContent(string mainText, SortDirection direction)
        {
            if (direction == SortDirection.Ascending)
                return string.Format("{0} {1}", mainText, AscendingIcon);
            else
                return string.Format("{0} {1}", mainText, DescendingIcon);
        }
    }
}
